/*
 * Java学习论坛
 * Copyright 2017 (C) All Rights Reserved.
 */
package cn.studyjava.verify.code12306.service;

import cn.studyjava.verify.code12306.mybatis.entity.Auth;

/**
 * <p>
 * Description:
 * </p>
 * 
 * @author: zsljava
 * @version 1.0.0
 * <p>
 * History:
 * -----------------------------------------------
 * @Date: 2017年8月8日 下午2:23:47
 * @author: zsljava
 * @version 1.0.0
 * @OP: Create
 * -----------------------------------------------
 * </p>
 *
 * @since
 * @see
 */
public interface IAuthService {

	/**
	 * 
	 * @Title: getAppKeyByAppId
	 * @Description: 通过appid 获取 appKey
	 * @param appId appid
	 * @return: String
	 */
	String getAppKeyByAppId(String appId);

	/**
	 * @Title: verify
	 * @Description: 校验验证状态
	 * @param authId authId
	 * @param appId appId
	 * @return: Auth
	 */
	Auth verify(String authId, String appId); 
	
	/**
	 * @Title: addAuth
	 * @Description:增加验证信息
	 * @param auth auth验证心
	 * @return
	 * @return: int
	 */
	int addAuth(Auth auth);
}
